package com.sllp.C71S3TsllpShop.biz;

import java.util.List;

import com.sllp.C71S3TsllpShop.bean.Business;
import com.sllp.C71S3TsllpShop.bean.ChartData;
import com.sllp.C71S3TsllpShop.bean.Result;
import com.sllp.C71S3TsllpShop.bean.User;

public interface BusinessBiz {
	
	
	List<Business> selectByPrimaryKey(int id);
	
	/**
	 * 商家登录
	 * @param user
	 * @return
	 */
	Result businessLogin(User user);
	
	/**
	 * 根据登录名称搜索商家
	 * @param loginName
	 * @return
	 */
	Result selectBusinessToSendEmailByLoginName(String loginName);
	
	/**
	 * 生成首页图表数据
	 * @param business
	 * @return
	 */
	List<ChartData> generateIndexChartData(Business business);

	/**
	 * 商家管理分页,根据条件查找商家
	 * @param business
	 * @param page
	 * @param pageSize
	 * @return
	 */
	List<Business> findBusinessByCondition(Business business, Integer page, Integer pageSize);

	/**
	 * 修改商家状态
	 * @param business
	 * @return
	 */
	Result updateBusinessState(Business business);
}
